
<%@ page import="payroll.webapp.EmployeeSalarySlip" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'employeeSalarySlip.label', default: 'EmployeeSalarySlip')}" />
        <title><g:message code="default.create.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/adminPage')}">Home</a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="default.create.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${employeeSalarySlipInstance}">
            <div class="errors">
                <g:renderErrors bean="${employeeSalarySlipInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form action="save" method="post" >
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="empSal_SalID"><g:message code="employeeSalarySlip.empSal_SalID.label" default="Emp Sal Sal ID" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: employeeSalarySlipInstance, field: 'empSal_SalID', 'errors')}">
                                    <g:textField name="empSal_SalID" value="${fieldValue(bean: employeeSalarySlipInstance, field: 'empSal_SalID')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="empSal_empID"><g:message code="employeeSalarySlip.empSal_empID.label" default="Emp Salemp ID" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: employeeSalarySlipInstance, field: 'empSal_empID', 'errors')}">
                                    <g:textField name="empSal_empID" value="${fieldValue(bean: employeeSalarySlipInstance, field: 'empSal_empID')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="empSal_month"><g:message code="employeeSalarySlip.empSal_month.label" default="Emp Salmonth" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: employeeSalarySlipInstance, field: 'empSal_month', 'errors')}">
                                    <g:textField name="empSal_month" value="${fieldValue(bean: employeeSalarySlipInstance, field: 'empSal_month')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="empSal_year"><g:message code="employeeSalarySlip.empSal_year.label" default="Emp Salyear" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: employeeSalarySlipInstance, field: 'empSal_year', 'errors')}">
                                    <g:textField name="empSal_year" value="${fieldValue(bean: employeeSalarySlipInstance, field: 'empSal_year')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="empSal_empDept"><g:message code="employeeSalarySlip.empSal_empDept.label" default="Emp Salemp Dept" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: employeeSalarySlipInstance, field: 'empSal_empDept', 'errors')}">
                                    <g:textField name="empSal_empDept" value="${employeeSalarySlipInstance?.empSal_empDept}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="salaryCalcType"><g:message code="employeeSalarySlip.salaryCalcType.label" default="Salary Calc Type" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: employeeSalarySlipInstance, field: 'salaryCalcType', 'errors')}">
                                    <g:select name="salaryCalcType.id" from="${payroll.webapp.SalaryCalcTypes.list()}" optionKey="id" value="${employeeSalarySlipInstance?.salaryCalcType?.id}" noSelection="['null': '']" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="residenceType"><g:message code="employeeSalarySlip.residenceType.label" default="Residence Type" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: employeeSalarySlipInstance, field: 'residenceType', 'errors')}">
                                    <g:select name="residenceType.id" from="${payroll.webapp.ResidentialTypes.list()}" optionKey="id" value="${employeeSalarySlipInstance?.residenceType?.id}" noSelection="['null': '']" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="empSalStatus"><g:message code="employeeSalarySlip.empSalStatus.label" default="Emp Sal Status" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: employeeSalarySlipInstance, field: 'empSalStatus', 'errors')}">
                                    <g:select name="empSalStatus.id" from="${payroll.webapp.EmployeeSalaryStatus.list()}" optionKey="id" value="${employeeSalarySlipInstance?.empSalStatus?.id}" noSelection="['null': '']" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="dateCreated"><g:message code="employeeSalarySlip.dateCreated.label" default="Date Created" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: employeeSalarySlipInstance, field: 'dateCreated', 'errors')}">
                                    <g:datePicker name="dateCreated" precision="day" value="${employeeSalarySlipInstance?.dateCreated}" noSelection="['': '']" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="lastModified"><g:message code="employeeSalarySlip.lastModified.label" default="Last Modified" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: employeeSalarySlipInstance, field: 'lastModified', 'errors')}">
                                    <g:datePicker name="lastModified" precision="day" value="${employeeSalarySlipInstance?.lastModified}" noSelection="['': '']" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="createdBy"><g:message code="employeeSalarySlip.createdBy.label" default="Created By" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: employeeSalarySlipInstance, field: 'createdBy', 'errors')}">
                                    <g:textField name="createdBy" value="${employeeSalarySlipInstance?.createdBy}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="lastModifiedBy"><g:message code="employeeSalarySlip.lastModifiedBy.label" default="Last Modified By" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: employeeSalarySlipInstance, field: 'lastModifiedBy', 'errors')}">
                                    <g:textField name="lastModifiedBy" value="${employeeSalarySlipInstance?.lastModifiedBy}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="empSal_houseAllowance_earned"><g:message code="employeeSalarySlip.empSal_houseAllowance_earned.label" default="Emp Salhouse Allowanceearned" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: employeeSalarySlipInstance, field: 'empSal_houseAllowance_earned', 'errors')}">
                                    <g:textField name="empSal_houseAllowance_earned" value="${fieldValue(bean: employeeSalarySlipInstance, field: 'empSal_houseAllowance_earned')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="empSal_totalTaxable_claim"><g:message code="employeeSalarySlip.empSal_totalTaxable_claim.label" default="Emp Saltotal Taxableclaim" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: employeeSalarySlipInstance, field: 'empSal_totalTaxable_claim', 'errors')}">
                                    <g:textField name="empSal_totalTaxable_claim" value="${fieldValue(bean: employeeSalarySlipInstance, field: 'empSal_totalTaxable_claim')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="empSal_monthIncentives_earned"><g:message code="employeeSalarySlip.empSal_monthIncentives_earned.label" default="Emp Salmonth Incentivesearned" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: employeeSalarySlipInstance, field: 'empSal_monthIncentives_earned', 'errors')}">
                                    <g:textField name="empSal_monthIncentives_earned" value="${fieldValue(bean: employeeSalarySlipInstance, field: 'empSal_monthIncentives_earned')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="empSal_otherAllowance_earned"><g:message code="employeeSalarySlip.empSal_otherAllowance_earned.label" default="Emp Salother Allowanceearned" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: employeeSalarySlipInstance, field: 'empSal_otherAllowance_earned', 'errors')}">
                                    <g:textField name="empSal_otherAllowance_earned" value="${fieldValue(bean: employeeSalarySlipInstance, field: 'empSal_otherAllowance_earned')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="empSal_nonTaxable_claim"><g:message code="employeeSalarySlip.empSal_nonTaxable_claim.label" default="Emp Salnon Taxableclaim" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: employeeSalarySlipInstance, field: 'empSal_nonTaxable_claim', 'errors')}">
                                    <g:textField name="empSal_nonTaxable_claim" value="${fieldValue(bean: employeeSalarySlipInstance, field: 'empSal_nonTaxable_claim')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="empSal_Employee_Insur_Contr"><g:message code="employeeSalarySlip.empSal_Employee_Insur_Contr.label" default="Emp Sal Employee Insur Contr" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: employeeSalarySlipInstance, field: 'empSal_Employee_Insur_Contr', 'errors')}">
                                    <g:textField name="empSal_Employee_Insur_Contr" value="${fieldValue(bean: employeeSalarySlipInstance, field: 'empSal_Employee_Insur_Contr')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="empSal_Opt_Insur_Contr"><g:message code="employeeSalarySlip.empSal_Opt_Insur_Contr.label" default="Emp Sal Opt Insur Contr" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: employeeSalarySlipInstance, field: 'empSal_Opt_Insur_Contr', 'errors')}">
                                    <g:textField name="empSal_Opt_Insur_Contr" value="${fieldValue(bean: employeeSalarySlipInstance, field: 'empSal_Opt_Insur_Contr')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="empSal_txnDate"><g:message code="employeeSalarySlip.empSal_txnDate.label" default="Emp Saltxn Date" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: employeeSalarySlipInstance, field: 'empSal_txnDate', 'errors')}">
                                    <g:datePicker name="empSal_txnDate" precision="day" value="${employeeSalarySlipInstance?.empSal_txnDate}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="empSal_basicSalary_earned"><g:message code="employeeSalarySlip.empSal_basicSalary_earned.label" default="Emp Salbasic Salaryearned" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: employeeSalarySlipInstance, field: 'empSal_basicSalary_earned', 'errors')}">
                                    <g:textField name="empSal_basicSalary_earned" value="${fieldValue(bean: employeeSalarySlipInstance, field: 'empSal_basicSalary_earned')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="empSal_IncomeTax_liability"><g:message code="employeeSalarySlip.empSal_IncomeTax_liability.label" default="Emp Sal Income Taxliability" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: employeeSalarySlipInstance, field: 'empSal_IncomeTax_liability', 'errors')}">
                                    <g:textField name="empSal_IncomeTax_liability" value="${fieldValue(bean: employeeSalarySlipInstance, field: 'empSal_IncomeTax_liability')}" />
                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
